import request from '@/utils/request.js'

// 获取栏目树
export function fetchCategoryTree () {
  return request.post('/category/tree')
}

// 获取子栏目树
export function fetchSubCategoryTree (parentCategoryUid) {
  return request.post(`/category/${parentCategoryUid}/tree`)
}
